<?php

/**
 * Description of notesClass
 *
 * @author nstevens
 */
class notesClass {

    public $ID, $personId, $name, $type, $notes, $wbsId, $wbsString, $status, $urlLink, $dateCreated, $lastUpdated, $subType, $value;

    public function __construct($row) {
        $this->ID = $row['notesId'];
        $this->personId = $row['personId'];
        $this->name = getFieldGivenAnID("person", "personID", $this->personId, "name");
        $this->type = $row['type'];
        $this->notes = $row['notes'];
        $this->wbsId = $row['wbsId'];
        $this->wbsString = getWbsString($this->wbsId);
        $this->status = $row['status'];
        $this->urlLink = $row['urlLink'];
        $this->dateCreated = $row['dateCreated'];
        $this->lastUpdated = $row['lastUpdated'];
        $this->subType = $row['subType'];
        $this->value = $row['value'];
    }

}

?>
